<div id="CustomerVisit">
  <yu-panel title="营销活动报表-新型农业">
    <yu-xform label-width="110px" ref="CustomerVisitInfoSearch" related-table-name="CustomerVisitTable" form-type="search"
              :custom-search-fn="searchFn">
      <yu-xform-group :column="3">
        <yu-xform-item label="客户姓名" placeholder="客户姓名" name="custName" ctype="input"></yu-xform-item>
        <yu-xform-item label="走访状态" placeholder="走访状态" name="visitStatus" ctype="select" data-code="VISIT_STATUS"></yu-xform-item>
        <yu-xform-item label="开始日期" placeholder="开始日期" ctype="datepicker" name="startTime"></yu-xform-item>
        <yu-xform-item label="结束日期" placeholder="结束日期" ctype="datepicker" name="endTime"></yu-xform-item>
      </yu-xform-group>
    </yu-xform>
    <div style="justify-content:space-between;display: flex">
      <div>
        <yu-button type="warning" v-loading="loading"  @click="exportExcel()" >导出数据</yu-button>
        <yu-button type="success" @click="getPhoto()" >查看图片</yu-button>
<!--        <el-button type="text" @click="getPhoto2()">点击打开 Dialog</el-button>-->
      </div>
    </div>
    <div style="height: 30px"></div>
    <yu-xtable ref="CustomerVisitTable" :base-params="CustomerVisitData" :data-url="funcDataUrl" request-type="get" row-number selection-type="checkbox" style="width: 100%">
      <yu-xtable-column prop="custName" label="客户姓名" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="custNo" label="客户编号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitDate" label="拜访日期" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitStartTime" label="开始时间" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitEndTime" label="结束时间" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="socialCreditCode" label="统一社会信用代码" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitStatus" label="走访状态：0未走访 1已走访" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="contactPhone" label="电话" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="merchantName" label="商户名称" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="address" label="地址" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitContent" label="走访内容" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="bizLicNo" label="营业执照" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="legalPerson" label="法人姓名" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="legalPersonCode" label="法人编号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="operatingStatus" label="经营状态 0正常 1已倒闭 3其他" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="fundDemand" label="资金需求 0无 1有需求" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="fundDemandTime" label="资金需求时间" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="otherRequirements" label="其他需求" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="userId" label="用户号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="orgId" label="机构号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="province" label="省" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="city" label="市" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="actFile" label="活动文件保存地址" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="customerSource" label="客户来源" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>

    </yu-xtable>
  </yu-panel>
  <el-dialog :visible.sync="dialogVisible" width="50%" style=" text-align: center;" :before-close="handleClose">
    <el-image
            style="width: 100px; height: 100px"
            :src="url"
            :preview-src-list="srcList"/>
  </el-dialog>

</div>

